package com.chenchao.designer.bridge;

/**
 * @encoding : UTF-8
 * @Time : 2020/12/3 10:45
 * @Author : Chen Chao
 * @File : javaSE.com.chenchao.designer.bridge.Computer.java
 * @Software : IntelliJ IDEA
 * @since : 1.8
 */
public abstract class BaseComputer {
    /**允许子类访问到品牌信息*/
    protected Brand brand;
    protected String type;
    public BaseComputer(Brand brand) {
        this.brand = brand;
    }

    @Override
    public String toString() {
        return "BaseComputer{" +
                "brand=" + brand.info() +
                ", type='" + type + '\'' +
                '}';
    }
}
